<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>
        <%=global.name%>
    </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="shortcut icon" href="/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="/css/screen.css" />
    <link rel="canonical" href="https://xiaopinzy.com/" />
    <meta name="referrer" content="origin" />
    <link rel="next" href="https://xiaopinzy.com/page/2/" />

    <script src="/js/jquery.js"></script>
    <script src="/js/jquery.fitvids.min.js"></script>
    


    <link rel="stylesheet" type="text/css" href="/css/xpblog.css" />




</head>

<body id="wrapper" class="home-template nav-closed">
    <div id="scroll" class="site-wrapper">
        <header class="main-header no-cover">
            <nav class="main-nav overlay clearfix">
                <a class="blog-logo" href="/"><img src="<%=global.logo%>" alt="<%=global.name%>" /></a>
            </nav>
            <div class="vertical">
                <div class="main-header-content inner">
                    <h1 class="page-title"><%=tags[0].name%></h1>

                </div>
            </div>
        </header>
        <section class="content-wrap">
            <div class="container">
                <div class="raw" id="bodycontent">
                    <main id="content" class="main-content1 main-content2" style="width:100%" role="main">
                        <div id="lists">
                            <%for(var i = 0;i<tags.length;i++){%>
                                <% var created = new Date(tags[i].article.created); %>
                                    <% createdstr = created.Format("yyyy年MM月dd日"); %>
                                        <% createdstr = (createdstr == '1970年01月01日' ? '0000年00月00日' : createdstr); %>
                                            <article class="post">
                                                <header class="post-header">
                                                    <h2 class="post-title">
                 <a href="/article/<%=tags[i].article._id%>"><%=tags[i].article.title%></a>
               </h2>
                                                </header>
                                                <section class="post-excerpt">
                                                    <%=tags[i].article.html.replace(/<[^>]+>/g,"").substr(0,140)+"..."%>
                                                </section>
                                                <footer class="post-meta">
                                                    <a href="/author/<%=tags[i].author._id%>">
                                                        <%=tags[i].author.nickname%>
                                                    </a>
                                                    标签：
                                                    <%for(var j = 0;j<tags[i].article.tags.length;j++){%>
                                                        <a href="/tags/<%=tags[i].article.tags[j]%>">
                                                            <%=tags[i].article.tags[j]%>
                                                        </a>&nbsp
                                                        <%}%>
                                                            <time class="post-date"><%=createdstr%></time>
                                                </footer>
                                            </article>
                                            <%}%>
                        </div>
                    </main>

                </div>
            </div>
        </section>
        <footer class="site-footer clearfix" id="footer">
            <center>
                <section class="copyright">
                    <a href="/">
                        <%=global.name%>
                    </a> &copy; 2016
                </section>
            </center>
        </footer>
    </div>
    <!-- jQuery1.7以上 或者 Zepto 二选一，不要同时都引用 -->
    <!-- <script src="/js/zepto.min.js"></script> -->
    <script src="/js/dropload.min.js"></script>


    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?c1aa51d40251d7f4363f90cbd95a150b";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</body>

</html>